home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_gnome-python.idb / usr / freeware / lib / python1.5 / site-packages / gnome / config.py.z / config.py
Encoding:
Python Source  |  1999-07-16  |  3.3 KB  |  102 lines

  1. import _gnome, gnome
  2.  
  3. if not gnome.gnomelib_init_called:
  4.     _gnome.gnomelib_init(gnome.app_id, gnome.app_version)
  5.     gnome.gnomelib_init_called = 1
  6.  
  7. def get_string(path):
  8.     return _gnome.gnome_config_get_string(path)
  9. def get_trandlated_string(path):
  10.     return _gnome.gnome_config_get_translated_string(path)
  11. def get_int(path):
  12.     return _gnome.gnome_config_get_int(path)
  13. def get_float(path):
  14.     return _gnome.gnome_config_get_float(path)
  15. def get_bool(path):
  16.     return _gnome.gnome_config_get_bool(path)
  17. def get_vector(path):
  18.     return _gnome.gnome_config_get_vector(path)
  19. def set_string(path, val):
  20.     _gnome.gnome_config_set_string(path, val)
  21. def set_trandlated_string(path, val):
  22.     _gnome.gnome_config_set_translated_string(path, val)
  23. def set_int(path, val):
  24.     _gnome.gnome_config_set_int(path, val)
  25. def set_float(path, val):
  26.     _gnome.gnome_config_set_float(path, val)
  27. def set_bool(path, val):
  28.     _gnome.gnome_config_set_bool(path, val)
  29. def set_vector(path, val):
  30.     _gnome.gnome_config_set_vector(path, val)
  31.  
  32. def has_section(path):
  33.     return _gnome.gnome_config_has_section(path)
  34. def list_section(path):
  35.     return _gnome.gnome_config_list_section(path)
  36. def enum_sections(path):
  37.     return _gnome.gnome_config_enum_sections(path)
  38.  
  39. def private_get_string(path):
  40.     return _gnome.gnome_config_private_get_string(path)
  41. def private_get_trandlated_string(path):
  42.     return _gnome.gnome_config_private_get_translated_string(path)
  43. def private_get_int(path):
  44.     return _gnome.gnome_config_private_get_int(path)
  45. def private_get_float(path):
  46.     return _gnome.gnome_config_private_get_float(path)
  47. def private_get_bool(path):
  48.     return _gnome.gnome_config_private_get_bool(path)
  49. def private_get_vector(path):
  50.     return _gnome.gnome_config_private_get_vector(path)
  51. def private_set_string(path, val):
  52.     _gnome.gnome_config_private_set_string(path, val)
  53. def private_set_trandlated_string(path, val):
  54.     _gnome.gnome_config_private_set_translated_string(path, val)
  55. def private_set_int(path, val):
  56.     _gnome.gnome_config_private_set_int(path, val)
  57. def private_set_float(path, val):
  58.     _gnome.gnome_config_private_set_float(path,val)
  59. def private_set_bool(path, val):
  60.     _gnome.gnome_config_private_set_bool(path, val)
  61. def private_set_vector(path, val):
  62.     _gnome.gnome_config_private_set_vector(path, val)
  63.  
  64. def private_has_section(path):
  65.     return _gnome.gnome_config_private_has_section(path)
  66. def private_list_section(path):
  67.     return _gnome.gnome_config_private_list_section(path)
  68. def private_enum_sections(path):
  69.     return _gnome.gnome_config_private_enum_sections(path)
  70.  
  71. def drop_all():
  72.     _gnome.gnome_config_drop_all()
  73. def sync():
  74.     _gnome.gnome_config_sync()
  75.  
  76. def sync_file(path):
  77.     _gnome.gnome_config_sync_file(path)
  78. def private_sync_file(path):
  79.     _gnome.gnome_config_private_sync_file(path)
  80.  
  81. def drop_file(path):
  82.     _gnome.gnome_config_drop_file(path)
  83. def clean_file(path):
  84.     _gnome.gnome_config_clean_file(path)
  85. def clean_section(path):
  86.     _gnome.gnome_config_clean_section(path)
  87. def clean_key(path):
  88.     _gnome.gnome_config_clean_key(path)
  89. def private_drop_file(path):
  90.     _gnome.gnome_config_private_drop_file(path)
  91. def private_clean_file(path):
  92.     _gnome.gnome_config_private_clean_file(path)
  93. def private_clean_section(path):
  94.     _gnome.gnome_config_private_clean_section(path)
  95. def private_clean_key(path):
  96.     _gnome.gnome_config_private_clean_key(path)
  97.  
  98. def push_prefix(path):
  99.     _gnome.gnome_config_push_prefix(path)
  100. def pop_prefix():
  101.     _gnome.gnome_config_pop_prefix()
  102.